Panel Switch Tool - ActiveX Properties

The Panel Switch Tool is an ActiveX control. As such, a Panel Switch Tool object has an ActiveX page on the Property Sheet. Many of these properties are the object’s formatting properties. Values for the ActiveX Properties can be set directly on the ActiveX page or in the OCXProperties dialog box, which is accessed by clicking the (OCXProperties) property.

Property Description Related Properties

AutoFrameRate

Specifies whether the object controls its update rate. Default is 0 - No. When set to 1 - Yes, the object is repainted at the rate specified by the UpdateFrameRate property.

UpdateFrameRate

BackGroundColor

Specifies the color of the object background. Default is gray (RGB 236.233.216). The background color is not shown if the Transparent property is set to 1 — Yes.

 

BackGroundColorTop

Specifies the color of the top half of the panel that contains the knob. Default is cyan (RGB 0.255.255). BorderStyle must be set to 3 - ibsTop for this color to show.

 

BorderStyle

Specifies the border style of the object. Default is 0 - ibsLine. Other options are 1-ibsRaised, 2 - ibsLowered, 3 - ibsTop, 4 - ibsNone.

 

Enabled

Enables user interaction with the object. If set to 0 - No, the object is still shown but its context menu is disabled. Default is 1 - Yes.

 

Height

Specifies the height (in pixels) of the object.

 

KnobHandleColor

Specifies the color of the knob handle. Default is gray (RGB 128.128.128).

 

KnobHandleWidth

Specifies the width (in pixels) of the knob handle. Default is 10.

 

KnobInnerColor

Specifies the color of the inner portion of the knob. Default is gray (RGB 128.128.128).

 

KnobOuterColor

Specifies the color of the knob plate. Default is white (RGB 255.255.255).

 

KnobRadius

Specifies the radius (in pixels) of the knob component.

 

KnobRadiusAutoSize

Enables the knob radius to be adjusted automatically when the object’s boundary is resized. Default is 1 - Yes.

 

KnobSideMargin

Specifies the margin (in pixels) between the knob and the object boundary. Default is 0.

 

MouseControlStyle

Specifies if the knob can freely rotate or by increment between positions. Default is 0 - ispmcRotate. Other option is 1 - ispmcIncrement.

 

OptionSaveAllProperties

Enables the SaveAllPropertiesToFile method to save just the ActiveX Properties or all object properties. Default is 0 - No, which means that only ActiveX Properties are saved.

 

PanelBackGroundColor

Specifies the background color of the switch’s panel area. Default is black (RGB 0.0.0).

 

PanelFontActive

Specifies the font of the active position caption. Default is MS Sans Serif (8 point).

PanelFontActiveColor

PanelFontActiveColor

Specifies the color of the active position caption font. Default is cyan (RGB 0.255.255).

PanelFontActive

PanelFontInactive

Specifies the font of the active position caption. Default is MS Sans Serif (8 point).

PanelFontActiveColor

PanelFontInactiveColor

Specifies the color of the active position caption font. Default is white (RGB 255.255.255).

PanelFontActive

PanelMarginBottom

Specifies the margin (in inches) between the captions and the bottom of the panel area. Default is 0.25.

 

PanelMarginRow

Specifies the margin (in inches) between the rows of captions. Default is 0.25.

 

PanelMarginTop

Specifies the margin (in inches) between the captions and the top of the panel area. Default is 0.25.

 

Position

Specifies the starting position of the pointer. Default is 0. In Run mode the position is determined by the point associated with the object.

 

PositionCaption1

Specifies the caption used for switch position 3. Default is On. In Run mode this label will be replaced by the enumeration table value or description.

[PositionLabel]

PositionCaption2

Specifies the caption used for switch position 3. Default is Off. In Run mode this label will be replaced by the enumeration table value or description.

[PositionLabel]

PositionCaption3

Specifies the caption used for switch position 3. Default is Manual. In Run mode this label will be replaced by the enumeration table value or description.

[PositionLabel]

PositionCount

Specifies the number of positions on the switch. Maximum is 3. Default is 3.

 

UpdateFrameRate

Specifies the rate (in seconds) of repainting the object. Default is 60. Applicable only when AutoFrameRate is set to 1 - Yes.

AutoFrameRate

Visible

Enables the visibility of the object on TheView. Default is 1 - Yes.

 

Width

Specifies the width (in pixels) of the object.

 

Back to top